package cn.edu.hbsi.conf;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger配置类
 */
//@Configuration
public class OpenApiConfig {

//    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("黑马点评项目接口文档")
                        .version("1.0.0")
                        .description("好用的SpringCloud实战项目！！！")
                        .contact(new Contact()
                                .name("混的组/.悸动/.")
                                .email("jidong2350838149@foxmail.com"))
                );
    }
}